{% extends "base_master.html" %}

{% block include %}
<link rel="stylesheet" href="/resources/css/sheet.css" type="text/css" />
{% endblock %}


{% block script %}
$(document).ready(function(){

		$(".buttonBox #regist").click(function(){
			document.location.href = "/project/create";
		}).button({
			icons:{
            "primary":"ui-icon-plus"}
		});
		
		$(".buttonBox #query").click(function(){
			//document.location.href = "/project/create";
		}).button({
			icons:{
            "primary":"ui-icon-search"}
		});
		
		// end of Button
});
{% endblock %}

{%block body %}
<div>
	<h3>Project Lists</h3>
</div>
<table border="1">
	<thead>
		<tr>
			<th>과제코드</th>
			<th>과제명</th>
			<th>계약금</th>
			<th>계약일</th>
		</tr>
	</thead>
	<tbody>
		{% for data in object%}
		<tr>
			<td><a href="/project/info/{{data.project_code}}" >{{ data.project_code}}</a></td>
			<td><a href="/project/info/{{data.project_code}}" >{{ data.project_desc}}</a></td>
			<td>{{ data.deposit}}</td>
			<td>{{ data.contract_date}}</td>
		</tr>
		{% endfor %}
	</tbody>
</table>

<div class="buttonBox">
	<button id="query">조회</button>
	<button id="regist">등록</button>
</div>
	
{% endblock %}
